package com.zem.imos.Entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zem.imos.Entity.Params.ParamsDoctor;
import lombok.Data;


@Data
public class Doctor  {
  @TableId(type = IdType.ASSIGN_ID)
  private Long id;
  private Long userId;
  private Long subdepartmentId;
  private String info;
  private String educational;
  private String title;
  private String expert;

  @TableField(exist = false)
  private String subdepartmentName;
  @TableField(exist = false)
  private Long departmentId;
  @TableField(exist = false)
  private String departmentName;
  public Doctor()
  {

  }

  public Doctor (ParamsDoctor paramsDoctor)
  {
    this.id = paramsDoctor.getId();
    this.userId = paramsDoctor.getUserId();
    this.subdepartmentId = paramsDoctor.getSubdepartmentId();
    this.info = paramsDoctor.getInfo();
    this.educational = paramsDoctor.getEducational();
    this.title = paramsDoctor.getTitle();
    this.expert = paramsDoctor.getExpert();

  }

}
